import {HomeOutlined, ReadOutlined, TableOutlined, UserOutlined} from "@ant-design/icons";

export default [
  {key: 'login', title: '登录', path: '/login', component: '@/pages/login'},
  {key: 'lock', title: '锁屏', path: '/lock', component: '@/pages/lock'},
  {
    key: 'home',
    title: '首页',
    path: '/',
    component: '@/layouts',
    routes: [
      {key: 'main', needRoleId: [42, 41, 40], title: '首页', icon: HomeOutlined, path: '/main', component: '@/pages/home'},
      {key: 'userInfo', needRoleId: [42, 41, 40], title: '用户信息', icon: UserOutlined, path: '/userInfo', ignore: true, component: '@/pages/users/components/userInfo'},
      {key: 'course', needRoleId: [42, 41, 40], title: '课程区', icon: ReadOutlined, path: '/course', component: '@/pages/course'},
      {key: 'users', needRoleId: [42], title: '用户管理', icon: UserOutlined, path: '/users', component: '@/pages/users'},
      {key: 'class', needRoleId: [42, 41, 40], title: '班级信息', icon: TableOutlined, path: '/class', component: '@/pages/class'},
    ]
  },
]
